package com.study.manage.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.study.manage.domain.enumm.NotificationShowType;
import com.study.manage.domain.enumm.NotificationState;
import com.study.manage.domain.enumm.NotificationType;

@Entity
@Table(name = "sa_notification")
public class Notification extends AbstractEntity {

    private static final long serialVersionUID = -6011110201264558378L;

    public Long userId;
    public String avatar;
    public String name;
    public String msg;
    public NotificationState state = NotificationState.UNREAD;
    @Column(name = "typee")
    public NotificationType type = NotificationType.SYS;
    public NotificationShowType showType = NotificationShowType.TEXT;
    public String url;

    public Notification() {

    }

    public Notification(Long id) {
        this.id = id;
    }

}
